home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
mint
/
network
/
lattice
/
portlib.lzh
/
PORTLIB
/
STRSEP.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-05-28
|
277 b
|
25 lines
/*
* strsep() - TeSche
*/
#include <stdio.h>
#include <string.h>
char *strsep(char **s, char *sep)
{
register char *ptr, *this = *s;
if (*s) {
if ((ptr = strpbrk(*s, sep))) {
*ptr++ = 0;
*s = ptr;
} else {
*s = NULL;
}
return this;
}
return NULL;
}